-- GENERATED SPELL FOR [Verdantine Tree Warder] --


function spell0_12479(pUnit, Event) --@Entangling Roots,n/a--
pUnit:FullCastSpellOnTarget(20654,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12479', 15000, 1)
end

function spell1_12479(pUnit, Event) --@Faerie Fire,n/a--
pUnit:FullCastSpellOnTarget(20656,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12479', 2000, 1)
end

function Sorts_12479(pUnit, Event)
local choix_sorts_12479 = math.random(0, 1)
if choix_sorts_12479 == 0 then
pUnit:RegisterEvent('spell0_12479', 1, 1)
end
if choix_sorts_12479 == 1 then
pUnit:RegisterEvent('spell1_12479', 1, 1)
end
end

function mob12479_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12479', math.random(1500, 3000), 1)
end

function mob12479_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12479_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12479_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12479, 1, 'mob12479_Action')
RegisterUnitEvent(12479, 2, 'mob12479_Leave')
RegisterUnitEvent(12479, 3, 'mob12479_Kill')
RegisterUnitEvent(12479, 4, 'mob12479_Die')
